package com.rj.bd.kj;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.security.*;

/**
 * @desc  顶级接口
 * @author 靳吉瑞
 */
public interface TuoMin {

    //加密
    String encrypt(String data);
    //解密
    String decrypt(String data) throws Exception;

    //脱敏方法
    String mask(String data);
    //生成密钥对
    KeyPair generateKeyPair(int i, Object o);


}
